//
//  DrivingLicenseModel.swift
//  TrafficViolation
//
//  Created by eaglelive on 2017/6/20.
//  Copyright © 2017年 eaglelive. All rights reserved.
//

import Foundation
import SwiftyJSON
class DrivingLicenseModel: NSObject {
    var orderNo:String = ""//订单号
    var driveLicense_1:String = ""//登记证书
    var driveLicense_2:String = ""//车辆照片
    var driveLicense_3:String = ""//身份证正面
    var driveLicense_4:String = ""//身份证反面
    var isOriginals:String = ""//是否需要原件 0：不需要，1：需要
    var ostatus:String = ""//订单状态 0：未支付，1：待处理，2：处理中，3：完成
    var oprocess:String = ""//审核状态 0：不可补，1：可补，2：原件已发送，3：原件已签收
    var reason:String = ""//当 oprocess = 0 时回复不可补原因
    var address:String = ""//收件地址
    var receiveUser:String = ""//收件人
    var receivePhone:String = ""//receivePhone
    var subUser:String = ""//提交人
    var opUser:String = ""//办理人
    var samount:String = ""//服务费
    var subtime:String = ""//提交时间
    var optime:String = ""//办理时间
    var remark:String = ""//备注信息
    //初始化
    init(dict : JSON) {
        super.init()
        self.orderNo = dict["orderNo"].stringValue
        self.driveLicense_1 = dict["driveLicense_1"].stringValue
        self.driveLicense_2 = dict["driveLicense_2"].stringValue
        self.driveLicense_3 = dict["driveLicense_3"].stringValue
        self.driveLicense_4 = dict["driveLicense_4"].stringValue
        self.isOriginals = dict["isOriginals"].stringValue
        self.ostatus = dict["ostatus"].stringValue
        self.oprocess = dict["oprocess"].stringValue
        self.reason = dict["reason"].stringValue
        self.address = dict["address"].stringValue
        self.receiveUser = dict["receiveUser"].stringValue
        self.receivePhone = dict["receivePhone"].stringValue
        self.subUser = dict["subUserName"].stringValue
        self.opUser = dict["opUserName"].stringValue
        self.samount = dict["samount"].stringValue
        self.subtime = dict["subtime"].stringValue
        self.optime = dict["optime"].stringValue
        self.remark = dict["remark"].stringValue
    }
}
